limit of piecewise function